#ifndef TBP_BUILD_STAT
#define TBP_BUILD_STAT
#include "graph.h"
#include "type.h"

namespace tbp {


// 编译器在这里会有优化
Partitions Partition_L_Edges(BiGraph &graph);
bool Is_Overlapping(time_pair first, time_pair second);
Indexes TBP_BUILD_STAR(BiGraph &graph);
void DEBUG(Partitions &partition, BiGraph &graph);

bool Query(uint32_t u, uint32_t w, uint32_t ts, uint32_t te, Indexes &idx);

void Insert(Indexes &idx, Entry e,uint32_t vertex_id,bool in);

uint32_t FindPartNum(Partitions &partition,Entry e);
} // namespace tbp

#endif